package at.fhj.itm10.ticketmaster.dao;

import java.util.List;

import at.fhj.itm10.ticketmaster.entities.Order;


public interface OrderDAOInterface {

	/**
	 * Insert Order.
	 * 
	 * @param entity
	 * @throws DAOException
	 */
	public abstract void insert(Order entity) throws DAOException;

	/**
	 * Update Order.
	 * 
	 * @param entity
	 * @throws DAOException
	 */
	public abstract void update(Order entity) throws DAOException;
	
	/**
	 * Delete Order.
	 * 
	 * @param entity
	 * @throws DAOException
	 */
	public abstract void delete(Order entity) throws DAOException;
	
	/**
	 * Find one by id.
	 * 
	 * @param id
	 * @return Order
	 * @throws DAOException
	 */
	public abstract Order findById(long id) throws DAOException;
	
	/**
	 * Find all.
	 * 
	 * @return List<Order>
	 * @throws DAOException
	 */
	public abstract List<Order> findAll() throws DAOException;

}